package com.rabbit.eap.system.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rabbit.eap.framework.common.entity.BaseEntity;
import com.rabbit.eap.framework.core.validator.groups.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;


/**
 * @projectName eap
 * @packageName com.rabbit.eap.system.entity
 * @className SysConfig
 * @author： rabbit
 * @version： 1.0
 * @since： 2020/06/06 23:34:01
 * <p>Description:
 * 参数配置表
 * SysConfig 实体
 * </p>

 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@TableName("sys_config")
@ApiModel(value = "SysConfig对象")
public class SysConfig extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 参数主键
     */
    @NotNull(message = "id不能为空", groups = {UpdateGroup.class})
    @ApiModelProperty("参数主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 参数名称
     */
    @ApiModelProperty("参数名称")
    @TableField("config_name")
    private String configName;

    /**
     * 参数键名
     */
    @ApiModelProperty("参数键名")
    @TableField("config_key")
    private String configKey;

    /**
     * 参数键值
     */
    @ApiModelProperty("参数键值")
    @TableField("config_value")
    private String configValue;

    /**
     * 系统内置（0是 1否）
     */
    @ApiModelProperty("系统内置（0是 1否）")
    @TableField("config_type")
    private String configType;

    /**
     * 备注
     */
    @ApiModelProperty("备注")
    @TableField("remark")
    private String remark;

}
